<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
	<div class="container-fluid">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
				<span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="${pageContext.request.contextPath}/index">Nutz Demo</a>
		</div>

		<div class="collapse navbar-collapse" id="navbar-collapse">
			<ul class="nav navbar-nav">
				<li class="active"><a href="javascript:;">首页</a></li>
				<li><a href="${pageContext.request.contextPath}/global/init">初始化数据库</a></li>
				<li class="dropdown"><a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a>
					<ul class="dropdown-menu" role="menu">
						<li><a href="javascript:;">Action</a></li>
						<li><a href="javascript:;">Another action</a></li>
						<li><a href="javascript:;">Something else here</a></li>
						<li class="divider"></li>
						<li><a href="javascript:;">Separated link</a></li>
						<li class="divider"></li>
						<li><a href="javascript:;">One more separated link</a></li>
					</ul></li>
			</ul>

			<ul class="nav navbar-nav navbar-right">
				<li class="dropdown"><a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">欢迎,<c:out value="${sessionInfo.user.name}" /><span class="caret"></span></a>
					<ul class="dropdown-menu" role="menu">
						<li><a href="javascript:;">IP[${pageContext.request.remoteAddr}]</a></li>
						<li class="divider"></li>
						<li><a href="${pageContext.request.contextPath}/logout">注销</a></li>
					</ul></li>
			</ul>
		</div>
	</div>
</nav>